<?php
ini_set("display_errors","1");
ini_set("display_startup_errors","1");
set_magic_quotes_runtime(0);

include_once("include/dbcommon.php");
include_once("include/header.php");


if(!@$_SESSION["UserID"])
{
	header("Location: login.php");
	return;
}


include('libs/xtempl.php');
$xt = new Xtempl();

$conn=db_connect();
//	Before Process event
if(function_exists("BeforeProcessMenu"))
	BeforeProcessMenu($conn);

?>



	<SCRIPT language=javascript>
document.write("<IFRAME SRC='painel.php' name='janela1' WIDTH=100% HEIGHT=500 frameborder='0' style=frame></IFRAME>");
</SCRIPT>



<? include_once("include/footer.php");?>